package cn.sylinx.horm.proxy.command.annotation;

import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

import java.lang.annotation.Documented;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

/**
 * 
 * @author han
 *
 */
@Documented
@Inherited
@Retention(RUNTIME)
@Target(TYPE)
public @interface Command {

    String datasource() default "";

    /**
     * 是否动态数据源，是则取：DynamicDatasourceProvider.create.getDatasource()
     * 
     * @return
     */
    boolean dynamic() default false;
}
